package siga.visao_financeiro;

import java.sql.SQLException;
import java.text.ParseException;
import siga.banco.conexao;
import siga.visao.index;
import siga.visao.verErros;

public class movContasReceverVerBoleto extends javax.swing.JDialog {
    public String cod_boleto;
    /** Creates new form movContasReceverVerBoleto */
    public movContasReceverVerBoleto(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jtfCodigo = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jtfCodAcademico = new javax.swing.JTextField();
        jtfDescAcademico = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jtfParcela = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jtfDtVenc = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jtfVlBruto = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jtfJuros = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jtfDesconto = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jtfVlLiq = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jtfCodCusto = new javax.swing.JTextField();
        jtfDescCusto = new javax.swing.JTextField();
        jtfCodContas = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jtfDescContas = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jtfDtPgto = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jtfVlPg = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        jtfSituacao = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jtfCodPlano = new javax.swing.JTextField();
        jtfDescPlano = new javax.swing.JTextField();
        jtfCodCaixa = new javax.swing.JTextField();
        jtfDescCaixa = new javax.swing.JTextField();
        jtfCodUser = new javax.swing.JTextField();
        jTextField22 = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        jtfTurma = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jtfTelCom = new javax.swing.JFormattedTextField();
        jtfTel = new javax.swing.JFormattedTextField();
        jtfTelCel = new javax.swing.JFormattedTextField();
        jtfEmail = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Dados do Boleto");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowOpened(java.awt.event.WindowEvent evt) {
                formWindowOpened(evt);
            }
        });

        jLabel1.setText("Código");
        jLabel1.setName("jLabel1"); // NOI18N

        jtfCodigo.setEditable(false);
        jtfCodigo.setName("jtfCodigo"); // NOI18N

        jLabel2.setText("Acadêmico");
        jLabel2.setName("jLabel2"); // NOI18N

        jtfCodAcademico.setEditable(false);
        jtfCodAcademico.setName("jtfCodAcademico"); // NOI18N

        jtfDescAcademico.setEditable(false);
        jtfDescAcademico.setName("jtfDescAcademico"); // NOI18N

        jLabel3.setText("Parcela");
        jLabel3.setName("jLabel3"); // NOI18N

        jtfParcela.setEditable(false);
        jtfParcela.setName("jtfParcela"); // NOI18N

        jLabel4.setText("Data de Venc.");
        jLabel4.setName("jLabel4"); // NOI18N

        jtfDtVenc.setEditable(false);
        jtfDtVenc.setName("jtfDtVenc"); // NOI18N

        jLabel5.setText("Valor Bruto");
        jLabel5.setName("jLabel5"); // NOI18N

        jtfVlBruto.setEditable(false);
        jtfVlBruto.setName("jtfVlBruto"); // NOI18N

        jLabel6.setText("Juros");
        jLabel6.setName("jLabel6"); // NOI18N

        jtfJuros.setEditable(false);
        jtfJuros.setName("jtfJuros"); // NOI18N

        jLabel7.setText("Desconto");
        jLabel7.setName("jLabel7"); // NOI18N

        jtfDesconto.setEditable(false);
        jtfDesconto.setName("jtfDesconto"); // NOI18N

        jLabel8.setText("Valor Líquido");
        jLabel8.setName("jLabel8"); // NOI18N

        jtfVlLiq.setEditable(false);
        jtfVlLiq.setName("jtfVlLiq"); // NOI18N

        jLabel9.setText("Centro de Custo");
        jLabel9.setName("jLabel9"); // NOI18N

        jtfCodCusto.setEditable(false);
        jtfCodCusto.setName("jtfCodCusto"); // NOI18N

        jtfDescCusto.setEditable(false);
        jtfDescCusto.setName("jtfDescCusto"); // NOI18N

        jtfCodContas.setEditable(false);
        jtfCodContas.setName("jtfCodContas"); // NOI18N

        jLabel10.setText("Plano de Contas");
        jLabel10.setName("jLabel10"); // NOI18N

        jtfDescContas.setEditable(false);
        jtfDescContas.setName("jtfDescContas"); // NOI18N

        jLabel11.setText("Plano de Pagamento");
        jLabel11.setName("jLabel11"); // NOI18N

        jLabel12.setText("Data de Pagto");
        jLabel12.setName("jLabel12"); // NOI18N

        jtfDtPgto.setEditable(false);
        jtfDtPgto.setName("jtfDtPgto"); // NOI18N

        jLabel13.setText("Valor Pago");
        jLabel13.setName("jLabel13"); // NOI18N

        jtfVlPg.setEditable(false);
        jtfVlPg.setName("jtfVlPg"); // NOI18N

        jLabel14.setText("Situação");
        jLabel14.setName("jLabel14"); // NOI18N

        jtfSituacao.setEditable(false);
        jtfSituacao.setName("jtfSituacao"); // NOI18N

        jLabel15.setText("Caixa");
        jLabel15.setName("jLabel15"); // NOI18N

        jLabel16.setText("Usuário");
        jLabel16.setName("jLabel16"); // NOI18N

        jButton1.setText("Sair");
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jtfCodPlano.setEditable(false);
        jtfCodPlano.setName("jtfCodPlano"); // NOI18N

        jtfDescPlano.setEditable(false);
        jtfDescPlano.setName("jtfDescPlano"); // NOI18N

        jtfCodCaixa.setEditable(false);
        jtfCodCaixa.setName("jtfCodCaixa"); // NOI18N

        jtfDescCaixa.setEditable(false);
        jtfDescCaixa.setName("jtfDescCaixa"); // NOI18N

        jtfCodUser.setEditable(false);
        jtfCodUser.setName("jtfCodUser"); // NOI18N

        jTextField22.setEditable(false);
        jTextField22.setName("jTextField22"); // NOI18N

        jLabel17.setText("Turma/Fase");
        jLabel17.setName("jLabel17"); // NOI18N

        jtfTurma.setEditable(false);
        jtfTurma.setName("jtfTurma"); // NOI18N

        jLabel18.setText("Telefone");
        jLabel18.setName("jLabel18"); // NOI18N

        jLabel19.setText("Telefone Comercial");
        jLabel19.setName("jLabel19"); // NOI18N

        jLabel20.setText("Telefone Celular");
        jLabel20.setName("jLabel20"); // NOI18N

        jLabel21.setText("E-Mail");
        jLabel21.setName("jLabel21"); // NOI18N

        jtfTelCom.setEditable(false);
        try {
            jtfTelCom.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##)####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jtfTelCom.setName("jtfTelCom"); // NOI18N

        jtfTel.setEditable(false);
        try {
            jtfTel.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##)####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jtfTel.setName("jtfTel"); // NOI18N

        jtfTelCel.setEditable(false);
        try {
            jtfTelCel.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("(##)####-####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jtfTelCel.setName("jtfTelCel"); // NOI18N

        jtfEmail.setEditable(false);
        jtfEmail.setName("jtfEmail"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jtfCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                            .addComponent(jLabel1)
                            .addComponent(jLabel18)
                            .addComponent(jtfTel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jtfCodAcademico, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jtfDescAcademico, javax.swing.GroupLayout.DEFAULT_SIZE, 317, Short.MAX_VALUE))
                            .addComponent(jLabel2)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jtfTelCom, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jtfTelCel, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel21)
                                        .addGap(31, 31, 31))
                                    .addComponent(jtfEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)))))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel9)
                        .addComponent(jLabel10)
                        .addComponent(jLabel11)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel12)
                                .addComponent(jtfDtPgto, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel13)
                                .addComponent(jtfVlPg, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jtfSituacao, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel14))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel17)
                                .addComponent(jtfTurma, javax.swing.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE)))
                        .addComponent(jLabel15)
                        .addComponent(jLabel16)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jtfCodContas, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtfDescContas, javax.swing.GroupLayout.DEFAULT_SIZE, 318, Short.MAX_VALUE))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jtfCodCusto, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtfDescCusto, javax.swing.GroupLayout.DEFAULT_SIZE, 317, Short.MAX_VALUE))
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel3)
                                .addComponent(jtfParcela, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jtfDtVenc, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel4))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel5)
                                .addComponent(jtfVlBruto, javax.swing.GroupLayout.DEFAULT_SIZE, 65, Short.MAX_VALUE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel6)
                                .addComponent(jtfJuros, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel7)
                                .addComponent(jtfDesconto, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jtfVlLiq)
                                .addComponent(jLabel8)))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jtfCodPlano, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jtfDescPlano))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jtfCodCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtfDescCaixa))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jtfCodUser, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jTextField22)))
                    .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtfCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtfCodAcademico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jtfDescAcademico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel18)
                            .addComponent(jLabel19))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jtfTelCom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtfTel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel20)
                            .addComponent(jLabel21))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jtfTelCel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtfEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtfVlLiq, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtfDesconto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(jLabel5)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jtfVlBruto))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addComponent(jLabel3)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jtfParcela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addComponent(jLabel6)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jtfJuros, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel4)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jtfDtVenc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel9)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtfCodCusto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtfDescCusto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtfCodContas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtfDescContas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel11)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtfCodPlano, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtfDescPlano, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel12)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtfDtPgto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel15))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel14)
                                .addComponent(jLabel17))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jtfSituacao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jtfTurma, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jLabel13)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jtfVlPg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtfCodCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtfDescCaixa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel16)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtfCodUser, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButton1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        dispose();
    }//GEN-LAST:event_jButton1ActionPerformed

    private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
        try {
            conexao.Query("select fr.codigo,fr.cod_pessoa,p.telefone,p.telefone_com,p.celular,p.email, p.descricao as desc_pessoa, fr.parcela,fr.dt_vencimento,fr.dt_emissao,fr.valor_bruto,fr.valor_juro_dia,fr.valor_desconto,fr.cod_centro_custos,fcc.descricao as desc_custo,fr.cod_plano_pagamento, fpp.descricao as desc_pgto, fr.cod_plano_contas, fpc.descricao as desc_contas,fr.dt_pagamento,fr.valor_pago,fr.status,fr.cod_matricula,fr.cod_fase,fr.cod_caixa, fc.descricao as desc_caixa,fr.cod_usuario, p2.descricao as desc_usr " + " from fin_contas_mov_r fr  " + " left join pessoas p on p.codigo=fr.cod_pessoa and p.cod_emp=fr.cod_emp " + " left join usuarios p2 on p2.codigo=fr.cod_usuario and p2.cod_emp=fr.cod_emp " + " left join fin_plano_centro fcc on fcc.codigo=fr.cod_centro_custos and fcc.cod_emp=fr.cod_emp " + " left join fin_plano_contas fpc on fpc.codigo=fr.cod_plano_contas and fpc.cod_emp=fr.cod_emp " + " left join fin_plano_pagamento fpp on fpp.codigo=fr.cod_plano_pagamento and fpp.cod_emp=fr.cod_emp " + " left join fin_caixa fc on fc.codigo=fr.cod_caixa and fc.cod_emp=fr.cod_emp " + " where fr.codigo=" + cod_boleto + " and fr.cod_emp=" + index.cod_emp);
            conexao.rs.next();
            jtfCodigo.setText(conexao.rs.getString("codigo"));
            jtfCodAcademico.setText(conexao.rs.getString("cod_pessoa"));
            jtfDescAcademico.setText(conexao.rs.getString("desc_pessoa"));
            jtfParcela.setText(conexao.rs.getString("parcela"));
            jtfDtVenc.setText((conexao.rs.getString("dt_vencimento")!=null)?index.dtcv.converte("BR", conexao.rs.getString("dt_vencimento").toString()):"");
            jtfVlBruto.setText((conexao.rs.getString("valor_bruto")!=null)?conexao.rs.getString("valor_bruto").replace('.', ','):"");
            jtfJuros.setText((conexao.rs.getString("valor_juro_dia")!=null)?conexao.rs.getString("valor_juro_dia").replace('.', ','):"");
            jtfDesconto.setText((conexao.rs.getString("valor_desconto")!=null)?conexao.rs.getString("valor_desconto").replace('.', ','):"");
            jtfCodCusto.setText(conexao.rs.getString("cod_centro_custos"));
            jtfDescCusto.setText(conexao.rs.getString("desc_custo"));
            jtfCodContas.setText(conexao.rs.getString("cod_plano_contas"));
            jtfDescContas.setText(conexao.rs.getString("desc_contas"));
            jtfCodPlano.setText(conexao.rs.getString("cod_plano_pagamento"));
            jtfDescPlano.setText(conexao.rs.getString("desc_pgto"));
            jtfDtPgto.setText((conexao.rs.getString("dt_pagamento")!=null)?index.dtcv.converte("BR", conexao.rs.getString("dt_pagamento").toString()):"");
            jtfVlPg.setText((conexao.rs.getString("valor_pago")!=null)?conexao.rs.getString("valor_pago").replace('.', ','):"");
            jtfSituacao.setText(conexao.rs.getString("status"));
            jtfTurma.setText(conexao.rs.getString("cod_matricula")+"/"+conexao.rs.getString("cod_fase"));
            jtfCodCaixa.setText(conexao.rs.getString("cod_caixa"));
            jtfDescCaixa.setText(conexao.rs.getString("desc_caixa"));
            jtfCodUser.setText(conexao.rs.getString("cod_usuario"));
            jTextField22.setText(conexao.rs.getString("desc_usr"));
            jtfTel.setText((conexao.rs.getString("telefone")!=null)?conexao.rs.getString("telefone").toString():"(  )    -    ");
            jtfTelCom.setText((conexao.rs.getString("telefone_com")!=null)?conexao.rs.getString("telefone_com").toString():"(  )    -    ");
            jtfTelCel.setText((conexao.rs.getString("celular")!=null)?conexao.rs.getString("celular").toString():"(  )    -    ");
            jtfEmail.setText((conexao.rs.getString("email")!=null)?conexao.rs.getString("email").toString():"@.com");
            double vlb = conexao.rs.getDouble("valor_bruto");
            double vlj = conexao.rs.getDouble("valor_juro_dia");
            double vld = conexao.rs.getDouble("valor_desconto");
            jtfVlLiq.setText(String.valueOf((vlb+vlj-vld)).replace(".", ","));
        } catch (ParseException ex) {
            verErros.setErro(ex.getMessage());
        } catch (SQLException ex) {
            verErros.setErro(ex.getMessage());
        }
    }//GEN-LAST:event_formWindowOpened


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JTextField jTextField22;
    private javax.swing.JTextField jtfCodAcademico;
    private javax.swing.JTextField jtfCodCaixa;
    private javax.swing.JTextField jtfCodContas;
    private javax.swing.JTextField jtfCodCusto;
    private javax.swing.JTextField jtfCodPlano;
    private javax.swing.JTextField jtfCodUser;
    private javax.swing.JTextField jtfCodigo;
    private javax.swing.JTextField jtfDescAcademico;
    private javax.swing.JTextField jtfDescCaixa;
    private javax.swing.JTextField jtfDescContas;
    private javax.swing.JTextField jtfDescCusto;
    private javax.swing.JTextField jtfDescPlano;
    private javax.swing.JTextField jtfDesconto;
    private javax.swing.JTextField jtfDtPgto;
    private javax.swing.JTextField jtfDtVenc;
    private javax.swing.JTextField jtfEmail;
    private javax.swing.JTextField jtfJuros;
    private javax.swing.JTextField jtfParcela;
    private javax.swing.JTextField jtfSituacao;
    private javax.swing.JFormattedTextField jtfTel;
    private javax.swing.JFormattedTextField jtfTelCel;
    private javax.swing.JFormattedTextField jtfTelCom;
    private javax.swing.JTextField jtfTurma;
    private javax.swing.JTextField jtfVlBruto;
    private javax.swing.JTextField jtfVlLiq;
    private javax.swing.JTextField jtfVlPg;
    // End of variables declaration//GEN-END:variables

}
